#include <stdio.h>
#include <iostream>
void calculate(int val)
{
static int count=10;
static int value;
printf("%d %d\n",value, count++);
value = val;
}
int main(int n, char** args)
{
int i, j;
calculate(i);//afd 11
calculate(j);//afd 12
system("pause");
}